<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz"></script> -->

</head>

<body>
    <span>输入：</span>
    <input type="text">
    <script>
        import _ from 'node_modules/lodash/lodash.js'
        console.log(_);
        let input = document.querySelector('input')
        input.oninput = _.debounce(function () {
            console.log('111');
        }, 1000)
    </script>
</body>

</html>